package com.jessechanrui.template.core.entity;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;

/**
 * @author chenrui
 * @version 1.0
 * @description BasePageRequest
 * @date 2025/6/5
 */
@SuperBuilder
@Data
@NoArgsConstructor
public class BasePageRequest {
    /**
     * 当前页码
     */
    @Schema(description = "当前页")
    @NotNull(message = "当前页不能为null")
    private Integer pageNum;

    /**
     * 每页显示的记录数
     */
    @Schema(description = "每页显示的记录数")
    @NotNull(message = "每页显示的记录数不能为null")
    private Integer pageSize;

    /**
     * 关键字
     */
    @Schema(description = "关键字")
    private String keyword;
}
